package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitLinesRouter(Router *gin.RouterGroup) {
	LinesRouter := Router.Group("lines").Use(middleware.OperationRecord())
	{
		LinesRouter.POST("createLines", v1.CreateLines)   // 新建Lines
		LinesRouter.DELETE("deleteLines", v1.DeleteLines) // 删除Lines
		LinesRouter.DELETE("deleteLinesByIds", v1.DeleteLinesByIds) // 批量删除Lines
		LinesRouter.PUT("updateLines", v1.UpdateLines)    // 更新Lines
		LinesRouter.GET("findLines", v1.FindLines)        // 根据ID获取Lines
		LinesRouter.GET("getLinesList", v1.GetLinesList)  // 获取Lines列表
	}
}
